import './styles/index.less'
import { StrictMode, Suspense } from 'react'
import { createRoot } from 'react-dom/client'
import { RouterProvider } from 'react-router-dom'
import { routes } from './config/routes'

import '@ant-design/v5-patch-for-react-19'

createRoot(document.getElementById('root')!).render(
  <StrictMode>
    <Suspense fallback={<div>加载中...</div>}>
      <RouterProvider router={routes} />
    </Suspense>
  </StrictMode>
)
